Need some help understanding the MATLAB `cat` command in high dimensions

Posted by Runner on Stack Overflow See other posts from Stack Overflow or by Runner
Published on 2010-04-09T17:21:15Z Indexed on 2010/04/11 1:13 UTC
Read the original article Hit count: 285

The commands

a = magic(3);
b = pascal(3); 
c = cat(4,a,b);

produce a 3-by-3-by-1-by-2 array.

Why is the result 3-3-1-2 when the dimension is 4?

© Stack Overflow or respective owner

Related posts about matlab

Related posts about syntax